<?php
/**
 * Created by PhpStorm.
 * User: mr.hao
 * Date: 2018/8/13
 * Time: 23:12
 */

namespace Modules\News;


use Houdunwang\WeChat\WeChat;
use Modules\News\Entities\NewsReply;

class Response
{
    public function handle($data){
        $instance = WeChat::instance('message');
        $news = json_decode(NewsReply::where('role_id',$data['id'])->first()->data,true);
        return $instance->news($news);
    }
}